import java.lang.reflect.Array;
import java.util.Arrays;

public class Transform {
    public static void main(String[] args) {
        int[] arr = {2,3,4};
        new Transform().transform(arr);
        System.out.println(Arrays.toString(arr));
    }

    void transform(int[] arr){
        for (int i = 0; i < arr.length; i++) {
            arr[i] *= 2;
        }
    }
}



